<?php

// @formatter:off
/**
 * @file sidetool.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: sidetool.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/extensions/RelatedComics/controllers/relatedcomics/sidetool.php $
 */
// @formatter:on

class ActionControllerRelatedcomicsSidetool extends WCActionController {
	//
	// Protected methods.
	protected function subRun() {
		$ok = true;

		//
		// Loading global pointers.
		global $wcComic;
		//
		// Only index, mobile and others are not allowed.
		if($wcComic) {
			$this->_manager->WC_E_RELATED_COMICS_ACTIVE = true;
			$this->_manager->WC_E_RELATED_COMICS_COMIC_ID = $wcComic->id();
			$this->_manager->WC_E_RELATED_COMICS_URI = WC_E_RELATED_COMICS_URI;
		}

		return $ok;
	}
}

?>